import request from "../utils/request";

export const getPostListAPI=(params)=>{
    return request({
        url:'/home/postList',
        method:'get',
        params:params
    })
}

export const getCommentListAPI=(params)=>{
    return request({
        url:'/home/getCommentList',
        method:'get',
        params:params
    })
}

export const getPostInfoAPI=(params)=>{
    return request({
        url:'/home/postInfo',
        method:'get',
        params:params
    })
}

export const sendCommentAPI=(params)=>{
    return request({
        url:'/home/addComment',
        method:'post',
        params:params
    })
}
export const addPostAPI=(params)=>{
    return request({
        url:'/home/addPost',
        method:'post',
        data:params
    })
}
export const goodAPI=(params)=>{
    return request({
        url:'/home/like',
        method:'put',
        data:params
    })
}
export const noGoodAPI=(params)=>{
    return request({
        url:'/home/noLike',
        method:'put',
        data:params
    })
}
